import java.util.Arrays;

public class findMany {
    public static int findMany(int[] array){
        Arrays.sort(array);
        return array[(array.length / 2)];
    }

    public static void main(String[] args) {
        int[] array = new int[]{1,2,3,3,5,6,2,2,2,2,2,2};
        System.out.println(findMany(array));
    }
}
